package com.zimmor.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.zimmor.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:zimmor
 * @Date: 2021/11/29 10:39
 * @Description 用户前端控制器
 * @version: 1.0.0
 */
@RestController
public class UserController {

    @Reference
    private UserService userService;

    @GetMapping("/user")
    public String sayHello() {
        return userService.sayHello("zhangsan");
    }
}
